package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 商品规格对象 sys_biz_shop_specs
 *
 * @author lixinchen
 * @date 2024-12-29
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_shop_specs")
public class SysBizShopSpecs extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 业务id
     */
    @Excel(name = "业务id")
    private String bizId;

    /**
     * 父类id
     */
    @Excel(name = "父类id")
    private Long parentId;

    /**
     * 规格名称
     */
    @Excel(name = "规格名称")
    private String specsName;

    /**
     * 排序值
     */
    @Excel(name = "排序值")
    private Long orderNum;

    /**
     * 是否删除(0：未删除，1：删除)
     */
    @Excel(name = "是否删除(0：未删除，1：删除)")
    private Long deleted;

    /**
     * 子规格数量
     */
    @TableField(exist = false)
    private Long childCount;

    /**
     * 子规格数量大于0
     */
    @TableField(exist = false)
    private Integer childs;
}
